In fact, it doesn't matter how remote, how poor is the resemblance of an insect to a stick, there must be some level of twilight, or some degree of distance away from the eye, or some degree of distraction of the predator's attention, such that even a very good eye will be fooled by the remote resemblance. If you don't find that plausible for some particular example that you have imagined, just turn down the imaginary light a bit, or move a bit further away from the imaginary object! The point is that many an insect was saved by an exceedingly slight resemblance to a twig or a leaf or a fall of dung, on occasions when it was far away from a predator, or on occasions when the predator was looking at it at dusk, or looking at it through a fog, or looking at it while distracted by a receptive female. And many an insect was saved, perhaps from the very same predator, by an uncannily close resemblance to a twig, on occasions when the predator happened to be seeing it at relatively close range and in a good light.